/*******************************************************************************
 * Copyright (c) 2011-11-10 @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a>.
 * All rights reserved.
 *
 * Contributors:
 *     <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> - initial API and implementation
 ******************************************************************************/
package com.redhat.auth.ejb.vo;

import java.io.Serializable;
import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * @author <a href="mailto:iffiff1@hotmail.com">Tyler Chen</a> 
 * @since 2011-11-10
 */
public class BizSystemVO implements Serializable {

	private static final long serialVersionUID = 3668088625598357514L;
	public static final int STATUS_DISABLED = 0;
	public static final int STATUS_ENABLED = 1;

	private Long id;
	// 业务系统名称
	private String name;

	// 系统生成业务系统的序列号，36位
	private String serialNumber;

	// 注册日期
	private Date registryDate;

	// 业务系统URL
	private String url;

	// 业务系统状态
	private int status = -1;

	// 描述
	private String description;

	public BizSystemVO() {
		super();
	}

	public BizSystemVO(Long id, String name, String serialNumber,
			Date registryDate, String url, int status, String description) {
		this();
		this.id = id;
		this.name = name;
		this.serialNumber = serialNumber;
		this.registryDate = registryDate;
		this.url = url;
		this.status = status;
		this.description = description;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSerialNumber() {
		return serialNumber;
	}

	public void setSerialNumber(String serialNumber) {
		this.serialNumber = serialNumber;
	}

	public Date getRegistryDate() {
		return registryDate;
	}

	public void setRegistryDate(Date registryDate) {
		this.registryDate = registryDate;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}

}
